package com.globalresources.business.inface;

import java.util.List;

import com.globalresources.po.Menu;

/**
 * @author aaron.lu(luzhiyuan) E-mail:atyuan.lu@gmail.com
 * @since 创建时间：Jul 22, 2009 12:48:37 AM
 */
public interface IMenuService {
	
	/**
	 * query menu 
	*@author aaron.lu(luzhiyuan)
	*@param auth
	*@return
	 */
	public List<Menu> getMenus(String auth);
	
	/**
	 * query all Menus
	*@author songduanlei@gmail.com
	*@param null
	*@return list Menus
	 */
	public List<Menu> listMenus();



	/**
	 * save the menu service
	 * 
	 * @author songduanlei@gmail.com
	 * @param Object
	 *            Menu
	 * @return null
	 */
	public void saveMenus(Menu menu);
	
	/**
	 * save or Update the menu service
	 * 
	 * @author songduanlei@gmail.com
	 * @param Object
	 *            Menu
	 * @return null
	 */
	public void saveOrUpdateMenus(Menu menu);

	/**
	 * get Menu By Id
	 * 
	 * @author songduanlei@gmail.com
	 * @param Integer Id
	 * @return Menu
	 */
	public Menu getMenuById(Integer Id);
	
	/**
	 * List Menu By Group
	 * 
	 * @author songduanlei@gmail.com
	 * @param null
	 * @return Menus
	 */
	public List<Menu> listByGroup(String id);
	
	/**
	 * List Menu By Author
	 * 
	 * @author songduanlei@gmail.com
	 * @param null
	 * @return List Menus
	 */
	public List<Menu> listAuthor();
	
	
	/**
	 * List Menu  Group
	 * 
	 * @author songduanlei@gmail.com
	 * @param null
	 * @return Menus
	 */
	public List<Menu> listGroup();
	
	/**
	 * List Menu Author
	 * 
	 * @author songduanlei@gmail.com
	 * @param null
	 * @return List Menus
	 */
	public List<Menu> listByAuthor(String id);
	
	
	/**
	 * delete Menu 
	 * 
	 * @author songduanlei@gmail.com
	 * @param null
	 * @return List Menus
	 */
	public boolean deleteMenuById(Integer id);
	
	
	


}